home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / Its-a-Gas.swf / scripts / DefineButton2_29 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2005-11-10  |  1.7 KB  |  61 lines

  1. on(release){
  2.    if(_root.countScore == true)
  3.    {
  4.       if(_root.mcTargets.targeter._droptarget == "/mcTargets/spy5")
  5.       {
  6.          _root.score = Number(_root.score) + 100;
  7.          _root.mcTargets.spy5.gotoAndPlay("crash");
  8.          if(_root.capCount != 0)
  9.          {
  10.             _root.capCount -= 1;
  11.          }
  12.          _root.countScore = false;
  13.       }
  14.       if(_root.mcTargets.targeter._droptarget == "/mcTargets/spy4")
  15.       {
  16.          _root.score = Number(_root.score) + 300;
  17.          _root.mcTargets.spy4.gotoAndPlay("crash");
  18.          if(_root.capCount != 0)
  19.          {
  20.             _root.capCount -= 1;
  21.          }
  22.          _root.countScore = false;
  23.       }
  24.       if(_root.mcTargets.targeter._droptarget == "/mcTargets/spy3")
  25.       {
  26.          _root.score = Number(_root.score) + 100;
  27.          _root.mcTargets.spy3.gotoAndPlay("crash");
  28.          if(_root.capCount != 0)
  29.          {
  30.             _root.capCount -= 1;
  31.          }
  32.          _root.countScore = false;
  33.       }
  34.       if(_root.mcTargets.targeter._droptarget == "/mcTargets/spy2")
  35.       {
  36.          _root.score = Number(_root.score) + 100;
  37.          _root.mcTargets.spy2.gotoAndPlay("crash");
  38.          if(_root.capCount != 0)
  39.          {
  40.             _root.capCount -= 1;
  41.          }
  42.          _root.countScore = false;
  43.       }
  44.       if(_root.mcTargets.targeter._droptarget == "/mcTargets/spy")
  45.       {
  46.          _root.score = Number(_root.score) + 100;
  47.          _root.mcTargets.spy.gotoAndPlay("crash");
  48.          if(_root.capCount != 0)
  49.          {
  50.             _root.capCount -= 1;
  51.          }
  52.          _root.countScore = false;
  53.       }
  54.    }
  55.    if(_root.mcTargets.targeter._droptarget == "/cheatme")
  56.    {
  57.       _root.capCount = 0;
  58.       _root.cheat = true;
  59.    }
  60. }
  61.